Class symantec.itools.awt.image.LightenFilter
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.image.LightenFilter

Object
   |
   +----ImageFilter
           |
           +----RGBImageFilter
                   |
                   +----symantec.itools.awt.image.LightenFilter

public class LightenFilter
extends RGBImageFilter
An Image filter to use for lightening an Image a specified percentage.

Version:
1.1, July 8, 1997
Author:
Symantec

Variable Index

 o errors
Error strings.
 o percent
The percentage to lighen when filtering.

Constructor Index

 o symantec.itools.awt.image.LightenFilter()
Constructs a default LightenFilter.
 o symantec.itools.awt.image.LightenFilter(double)
Constructs a LightenFilter.

Method Index

 o filterRGB(int, int, int)
Filters an RGB value by the current lighten percentage.
 o getPercent()
Gets the percentage to fade when filtering.
 o setPercent(double)
Sets the percentage to fade when filtering.

Variables

 o errors
protected transient java.util.ResourceBundle errors
Error strings.

 o percent
protected double percent
The percentage to lighen when filtering.

See Also:
getPercent, setPercent

Constructors

 o LightenFilter
public LightenFilter()
Constructs a default LightenFilter. By default the Image is lightened 50%.

See Also:
LightenFilter(double), setPercent
 o LightenFilter
public LightenFilter(double percent)
Constructs a LightenFilter.

Parameters:
percent - the percent to lighten the image when filtering.
See Also:
LightenFilter(), setPercent

Methods

 o filterRGB
public int filterRGB(int x,
                     int y,
                     int rgb)
Filters an RGB value by the current lighten percentage.

Parameters:
x - unused
y - unused
rgb - the rgb value to lighten
Returns:
the lightened rgb value
Overrides:
filterRGB in class RGBImageFilter
 o getPercent
public double getPercent()
Gets the percentage to fade when filtering.

Returns:
the percentage to fade
See Also:
setPercent
 o setPercent
public void setPercent(double percent) throws IllegalArgumentException
Sets the percentage to fade when filtering.

Parameters:
percent - the percentage to fade
Throws: IllegalArgumentException
if the specified percentage value is unacceptable
See Also:
getPercent

All Packages  Class Hierarchy  This Package  Previous  Next  Index